package com.perceptivesoftware.licensing.client.dialogs.useradmin;

import com.perceptivesoftware.licensing.client.dialogs.useradmin.plugin.SecurityManagerNavItem;

public interface SecurityManagerPluginCallback {

	// Will refresh the context menu and (in the future) things like the button
	// bars
	public void refreshActionItems();

	// Will remove all children from the node and then re-call getChildren on
	// the node and recursively on the children.
	public void updateNavItemsChildren(SecurityManagerNavItem ani);

	// Will update the model in the tree (name, style, icon, etc...), but NOT
	// CHILDREN!
	public void updateNavItem(SecurityManagerNavItem ani);

	// Will remove the item (and any children) from the tree
	// MAKE SURE YOU UPDATE ALL LISTS OF NAV ITEMS
	public void deleteNavItemFromTree(SecurityManagerNavItem ani);

	// Will add child nav item to parent nav item in the tree
	public void addNavItem(SecurityManagerNavItem parent, SecurityManagerNavItem child);
}